<?php
namespace app\manage\controller;
use  think\facade\Db;
class Upload extends Base
{

    public function uploadImage()
    {
        $allowType = array(
            "image/gif",
            "image/jpeg",
            "image/jpg",
            "image/png",
            "image/pjpeg",
            "image/bmp"
        );
        $res = upload_file('file',$allowType,1024);
        return ajax($res);
    }



}